package com.sinoatma.physignsmonitor.ui

import com.common.frame.base.BaseViewModel
import com.google.gson.Gson
import com.sinoatma.physignsmonitor.constant.devicesNumber
import com.sinoatma.physignsmonitor.http.NetManager
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody
import java.text.SimpleDateFormat
import java.util.*

/**
 * @ProjectName : PhySignsMonitor
 * @Author :
 * @Time : 2024/12/27 17:37
 * @Description : 文件描述
 */
class MainViewModel:BaseViewModel() {
    val sdfDate = SimpleDateFormat("yyyy年MM月dd日")



    fun  online(){
//        val jsonMap = HashMap<String, String>()
//        jsonMap["deviceNumber"]= devicesNumber
//        jsonMap["status"]="10"
//        val gson = Gson()
//        val toJson = gson.toJson(jsonMap)
//        launchRequest({NetManager.online(RequestBody.create("application/json;charset=UTF-8".toMediaTypeOrNull(), toJson))},{
//        },{
//        },false)
    }


}